package com.baiyuan.tms.gateway.core.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * JWT令牌包装对象
 */
@Data
public class TokenObject {
    @TableId(value = "id",type = IdType.AUTO)
    private long id;

    @ApiModelProperty(value = "编号")
    private String code;

    @ApiModelProperty(value = "账户")
    private String account;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "是否启用")
    private Integer enable;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "地址")
    private Integer address;

    @ApiModelProperty(value = "来源")
    private String origin;

    @ApiModelProperty(value = "角色id")
    private Long roleId;
}
